﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RaisingStudio.Data.Converters;

namespace RaisingStudio.Data.Entities.Converters
{
    public class GuidConverter : IDbTypeConverter
    {
        public object ConvertFromDbType(object value)
        {
            return Guid.Parse((string)value);
        }

        public object ConvertToDbType(object value)
        {
            return value.ToString();
        }
    }
}
